home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1987 October
/
1987-10.d64
/
cricket demo #1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
568b
|
24 lines
10 rem random circles
20 k=0:forj=49152to49162:k=k+peek(j):next
30 ifk<>1210thenload"cricket",8,1
40 poke 56,140:clr
50 hr=49152:hz=hr+3:hc=hr+6:hx=hr+9:hp=hr+12
60 sys hr,1:rem hi-res on
70 sys hz:rem zero screen
80 sys hc,1,6:rem white on blue
90 forb=1to10
100 cx=int(rnd(1)*219+50):cy=int(rnd(1)*99+50):cr=int(rnd(1)*40+10):gosub150
110 next
120 geta$:ifa$=""then120
130 sys hr,0:rem hi-res off
140 print"[147][144]":end
150 fori=0to90step2:a=i*(NULL)/180
160 dx=cos(a)*cr:dy=sin(a)*cr*.82
170 sys hx,1,cx+dx,cy+dy:rem set pixels
180 sys hx,1,cx-dx,cy+dy
190 sys hx,1,cx+dx,cy-dy
200 sys hx,1,cx-dx,cy-dy
210 next
220 sys hp,b,cx-4,cy-4:rem print characters
230 return